<?php
/**
 * Created by JetBrains PhpStorm.
 * User: thinhhung
 * Date: 6/1/12
 * Time: 3:24 PM
 * To change this template use File | Settings | File Templates.
 */
?>
<h1>THÊM HÀNG HÓA BÁN</h1>

    <script type="text/javascript">
       /* $("#SANPHAM_ID").change (fuction{alert("jâjaj")}); */
    </script>


<?php
$mahdn = $this->Session->read('mahdb');
echo $this->Form->create('ChiTietBan', array('style' => 'text-align: center;'));
//echo $this->Form->input('id', array('type' => 'hidden', 'style' => 'width:200px'));
echo $this->Form->input('MAHDB', array('readonly' => 'readonly', 'style' => 'width:200px', 'value' => $mahdn));
echo $this->Form->input('MASP', array('label' => 'Mã hàng hóa :', 'style' => 'width:200px'));
echo $this->Form->input('SLBAN', array('label' => 'Số lượng :', 'style' => 'width:200px'));
echo $this->Form->input('DONGIABAN', array('label' => 'Đơn giá (VNĐ) :', 'style' => 'width:200px', 'type' => 'hidden'));
echo $this->Form->submit('Lưu');
echo $this->Html->Link('Hủy', array('controller' => 'hoa_don_bans', 'action' => 'index'), array('class' => 'lk'));
echo $this->Form->end();
?>